using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using QLNT_DAO;
using QLNT_DTO;

namespace QLNT_BUS
{
    public class TaiKhoan_bus
    {
        public int ThietLapTaiKhoan(string TenTK, string MatMaTK, string HoTenNV, int MaQuyen)
        {
            TaiKhoan_dao tk = new TaiKhoan_dao();
            return tk.ThietLapTaiKhoan(TenTK, MatMaTK, HoTenNV, MaQuyen);
        }

        public int ThayDoiTaiKhoan(string TenTK, string MatMaTK, string HoTenNV, int MaQuyen)
        {
            TaiKhoan_dao tk = new TaiKhoan_dao();
            return tk.ThayDoiTaiKhoan(TenTK, MatMaTK, HoTenNV, MaQuyen);
        }

        public int XoaTaiKhoan(string TenTaiKhoan)
        {
            TaiKhoan_dao tk = new TaiKhoan_dao();
            return tk.XoaTaiKhoan(TenTaiKhoan);
        }

        public TaiKhoan_dto[] SelectAll()
        {
            TaiKhoan_dao tk = new TaiKhoan_dao();
            return tk.SelectAll();
        }

        public TaiKhoan_dto GetTaiKhoan(string TenTaiKhoan)
        {
            TaiKhoan_dao tk = new TaiKhoan_dao();
            return tk.GetTaiKhoan(TenTaiKhoan);
        }
    }
}
